-------------------------------------------------------------------------=---
-- Name:        ttMainEntry.lua
-- Purpose:     tt code lua script main entry
-- Author:      mayingkui
-- Created:     Oct 2009
-- Copyright:   
-- Licence:     BSD licence
-------------------------------------------------------------------------=---
-- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit
package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;"
require("wx")
--------------------------------------------------------------------------------
package.path = package.path..";../../tt-app/luaScript/wx/?.lua"
require("ttMainFrame")
--------------------------------------------------------------------------------
print(arg[0])
-- ---------------------------------------------------------------------------
-- The main program as a function (makes it easy to exit on error)
globalMainFrame = wx.wxFrame(wx.NULL, wx.wxID_ANY,  "wxLua sizer test frame")
wx.wxGetApp():SetTopWindow(globalMainFrame)
globalMainFrame:Show(true)
-- Call wx.wxGetApp():MainLoop() last to start the wxWidgets event loop,
-- otherwise the wxLua program will exit immediately.
-- Does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit since the
-- MainLoop is already running or will be started by the C++ program.
wx.wxGetApp():MainLoop()
